package com.bgIntlgn.client.entity.sells.receipt;

import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * 订单充款记录。
 * 
 * @author yuhui
 * 
 */
@Table(name = "order_receipt_records", constrain = "")
public class OrderReceiptRecord implements Bean {

	/**
	 * 对应的订单
	 */
	@Field(name = "order_id", type = "int8 ", constrain = " not null references orders(id) on update cascade ")
	private Long orderId;

	/**
	 * 对应的收款记录
	 */
	@Field(name = "receipt_id", type = "int8 ", constrain = " not null references receipt_records(id) on update cascade ")
	private Long receiptId;
	
	/**
	 * 金额.
	 */
	@Field(name = "money", type = "numeric(11,3)", constrain = "default 0.0")
	private double money;

	
	public Long getOrderId() {
		return this.orderId;
	}

	
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	
	public Long getReceiptId() {
		return this.receiptId;
	}

	
	public void setReceiptId(Long receiptId) {
		this.receiptId = receiptId;
	}

	
	public double getMoney() {
		return this.money;
	}

	
	public void setMoney(double money) {
		this.money = money;
	}
	
}
